<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			#wrap{
				width: 300px;
				height: 300px;
				border: 1px solid;
				margin: 100px auto;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
			}
			#wrap>.item{
				width: 50px;
				height: 50px;
				background: pink;
				text-align: center;
				line-height: 50px;
				
				/*语法糖，等于下面的flex:1*/
				/* flex-shrink: 1;
				flex-grow: 1;
				flex-basis: 0; */
				
				/*语法糖，等于上面三个*/
				flex: 1;
			}
		</style>
	</head>
	<body>
		<div id="wrap">
			<div class="item">1</div>
			<div class="item">22</div>
			<div class="item">333</div>
			<div class="item">4444</div>
			<div class="item">555555</div>
		</div>
	</body>
</html>
